package com.woniuxy.carlife.minio;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author fx
 * @ClassName:BaseConfig
 * @Description: 注册minio模板类
 * @date 2021/4/10 0:04
 **/

@Configuration
public class BaseConfig {

    @Resource
    private MinioConfig mc;

    @Bean
    public MinioTemplate createMinioTemplate() {
        MinioTemplate mt = new MinioTemplate(mc);
        return mt;
    }
}
